package com._520it.crm.web.controller;


import com._520it.crm.page.PageResult;
import com._520it.crm.query.OrderBillQueryObject;
import com._520it.crm.query.OrderBillQueryObject;
import com._520it.crm.service.IOrderBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@RequestMapping("/issuedReturn")
public class IssuedReturnController {
    @Autowired
    private IOrderBillService orderBillService;


    @RequestMapping("")
    public String index(){
        return "issuedReturn";
    }
    @RequestMapping("/list")
    @ResponseBody
    public PageResult toData(OrderBillQueryObject queryObject){
        PageResult approval =  orderBillService.issuedReturnQueryPage(queryObject);
        return approval;
    }
}
